﻿using Newtonsoft.Json.Linq;

namespace MediaAssistant.DAL.Helper
{
    public class MediaHelper
    {
        public static bool HasError(JObject jsonObject)
        {
            var error = (string) jsonObject.SelectToken("Response");
            bool hasError = error.Contains("Error") || error.Contains("False");
            return hasError;
        }
    }
}
